<section class="scrollable padder-md" data-ng-controller="WithdrawDepositRequestListController">
    <div class="m-b-md">
        <h3 class="m-b-none text-black">
            <i class="fa fa-list m-r-sm"></i>提现请求
        </h3>
    </div>
    <!-- Toolbar 按钮栏 -->
    <section class="panel panel-default scrollable">
        <header class="panel-heading">
            <div class="row">
                <div class="col-sm-5">
                    <div class="od-head-title">提现请求列表</div>
                </div>
            </div>
        </header>
        <form class="form-inline" data-ng-submit="getObjList()">
            <div class="wrapper row">
                <div class="col-sm-10">
                    <div class="form-group">
                        <input type="text"
                               class="input-sm form-control"
                               data-ng-model="queryObj.driverName" placeholder="司机名">
                    </div>
                    <div class="form-group">
                        <input type="text"
                               class="input-sm form-control"
                               data-ng-model="queryObj.driverTel" placeholder="司机电话（账号）">
                    </div>
                    <div class="form-group">
                        <input type="text"
                               class="input-sm form-control"
                               data-ng-model="queryObj.carNo" placeholder="车牌号">
                    </div>

                    <div class="form-group">
                        <select class="input-sm form-control" data-ng-model="queryObj.state">
                            <option value="">状态</option>
                            <option value="-1">已取消</option>
                            <option value="0">申请中</option>
                            <option value="10">处理中</option>
                            <option value="49">失败</option>
                            <option value="50">完结</option>
                        </select>
                    </div>

                    <div class="form-group">
                        <input data-ng-model="queryObj.createTimeStart" class="input-sm form-control" type="text"
                               data-jss-datetimepicker="yyyy-mm-dd hh:ii" placeholder="创建开始时间"/>
                    </div>
                    <div class="form-group">
                        <input data-ng-model="queryObj.createTimeEnd" class="input-sm form-control" type="text"
                               data-jss-datetimepicker="yyyy-mm-dd hh:ii" placeholder="创建结束时间"/>
                    </div>

                    <div class="form-group">
                        <button class="form-control btn btn-sm btn-warning " type="submit">查询</button>
                        <button class="form-control btn btn-sm btn-success " type="button" data-ng-click="exportWithdrawDepositRequest()">导出</button>
                    </div>
                </div>
                <div class="col-sm-2 text-right">
                    <!--<div class="form-group">-->
                    <!--<button class="form-control btn btn-sm btn-primary " type="button" data-ng-click="resetParam()">重置</button>-->
                    <!--</div>-->
                    <!--<div class="form-group">-->
                    <!--<button class="form-control btn btn-sm btn-success " type="button"-->
                    <!--data-ng-click="add()">新增-->
                    <!--</button>-->
                    <!--</div>-->
                </div>
            </div>
        </form>
        <!-- 表格部分 -->
        <div class="table-responsive">
            <table class="table table-striped b-t b-light">
                <thead>
                <tr>
                    <th>序号</th>
                    <th>账号</th>
                    <th>司机名</th>
                    <th>车牌号</th>
                    <th>收款账号</th>
                    <th>开户银行</th>
                    <th>提现金额</th>
                    <th>当前钱包金额</th>
                    <th>申请时间</th>
                    <th>状态</th>
                    <th class="col-md-3">操作</th>
                </tr>
                </thead>
                <tbody>
                <tr data-ng-repeat="withdrawDepositRequest in withdrawDepositRequestList">
                    <td>{{(pagerObj.currentPage-1)*pagerObj.pageSize+$index+1}}</td>
                    <td>{{withdrawDepositRequest.driverTel}}</td>
                    <td>{{withdrawDepositRequest.driverName}}</td>
                    <td>{{withdrawDepositRequest.carNo}}</td>
                    <td>{{withdrawDepositRequest.bankAccountNo}}</td>
                    <td>{{withdrawDepositRequest.bankAccountName}}</td>
                    <td class="text-danger">{{withdrawDepositRequest.money}}</td>
                    <td class="text-info">{{withdrawDepositRequest.wallet.money}}</td>
                    <td>{{withdrawDepositRequest.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                    <td>{{getStateName(withdrawDepositRequest.state)}}</td>
                    <td>
                        <a href="javascript:void(0);" class="text-primary m-r-xs"
                           data-ng-click="edit(withdrawDepositRequest.id)"><i class=""></i>查看</a>
                        <a href="javascript:void(0);" class="btn btn-primary btn-sm"
                           data-ng-click="processRequest(withdrawDepositRequest)"
                           data-ng-if="withdrawDepositRequest.state == 0">
                            处理提现转账
                        </a>
                        <a href="javascript:void(0);" class="btn btn-danger btn-sm"
                           data-ng-click="faildRequest(withdrawDepositRequest)"
                           data-ng-if="withdrawDepositRequest.state == 10">
                            拒绝提现
                        </a>
                        <a href="javascript:void(0);" class="btn btn-success btn-sm"
                           data-ng-click="completeRequest(withdrawDepositRequest)"
                           data-ng-if="withdrawDepositRequest.state == 10">
                            完结
                        </a>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>

        <!-- 分页控件 -->
        <footer class="panel-footer">
            <div data-ng-include="'comm/pager/pager.html'"></div>
        </footer>
    </section>
</section>
